
<!--top结束-->
<div class="mian">
    <div class="mian1">
        <div class="mian2">
            <!--left start-->
            <?php $this->load->view('defaults/common/left'); ?>
            <!--left end-->

            <!--right start-->
            <div class="right">
                <!--breadcrumb start-->
                <div class="righta"><?= $this->breadcrumb->generateHTML(); ?> </div>
                <!--breadcrumb end-->

                <!-- contents start -->
                <div id="contents">
                    <div id="ct_search">
                        <form action="<?= blang_url('wms/Zcsq/show') ?>"  >
                            <table id="search_tb">
                                <tr>
                                    <td>
                                        <?= lang('wms_panel_30041') ?>： <input type="text" name="order_id" size="30" placeholder="<?= lang('wms_panel_30041') ?>">&nbsp;&nbsp;&nbsp;
                                        <input type="submit" value=" <?=lang('wms_ss')?>  ">
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                    <div class="ct_content">
                        <table class="tbwd800">
                            <tr>
                                <th><?= lang('wms_panel_30041') ?></th>
                                <th><?= lang('wms_ckdm') ?></th>
                                <th><?= lang('wms_panel_30042') ?></th>
                                <th><?= lang('wms_panel_30043') ?></th>
                                <th><?= lang('wms_panel_30017') ?></th>
                                <th><?= lang('wms_panel_30051') ?></th>
                                <th><?= lang('wms_panel_30044') ?></th>
                                <th><?= lang('wms_panel_30002') ?></th>
                                <th><?= lang('wms_panel_30015') ?></th>
                                <th><?= lang('wms_panel_30018') ?></th>
                            </tr>
                            <?php $urlParam = @http_build_query($this->input->get());
                            foreach ($receivingList as $row)
                            { ?>
                                <tr align="left" class="moves">
                                    <td><?= $row['order_id'] ?></td>
                                    <td><?='('.$row['whs_code'].')'.$row['whs_name']?></td>
<!--                                    <td><?= $row['ref_num']; ?></td>-->
                                    <td><?= $row['order_from'] ?></td>
                                    <td><?= $status_view[$row['status']] ?></td>
                                    <td><?= $row['creator_id'] ?></td>
                                    <td><?= $row['in_or_out'] ?></td>
                                    <td><?= $row['in_out_type'] ?></td>
                                    <td><?= $row['comments'] ?></td>  
                                    <td><?= $row['created_time'] ?></td>
                                    <td><a href="<?=blang_url('wms/Zcsq/detail/'.$row['order_id'])?>" ><?= lang('wms_panel_30019') ?></a></td>
                                </tr>
<?php } ?>
                            <tr align="center">
                                <td colspan="10"><?= $pageShow ?></td>
                            </tr>
                        </table>
                    </div>
                </div>
                <!-- contents end -->
            </div>
            <!--right end-->
            <div class="clear"></div>
        </div>
    </div>
</div>

<script type="text/javascript">
    $("#checkall").click(
    function(){
        if(this.checked){
            $("input[name='checkid']").prop('checked', true)
        }else{
            $("input[name='checkid']").prop('checked', false)
        }
    } 
);
    function selectedSubmit(){  
        var r=confirm("<?= lang('wms_tips_tsqrrk'); ?>");
        var ids=new Array()
        if(r){
            $("input[name='checkid']:checkbox:checked").each(function(){
                ids.push($(this).val());
            });
        }
        if(ids.length<1){
            alert('<?= lang('wms_tips_xzjl'); ?>');
            return false ;
        }
        //        var idsjson=JSON.stringify(ids);
        var idsStr =ids.join();
        window.location.href=('<?= blang_url("wms/ReceivingOrderList/store_in_batch") ?>?ids='+idsStr+'&<?= $urlParam ?>');
        
    }  
</script>
